package com.venn.util;

import com.alibaba.fastjson.JSONArray;
import com.venn.entity.ResultMessage;

/**
 * Created by venn on 8/31/2017.
 */
public class CommonMethod {

    public String returnMsg(String code,String msg) {
        ResultMessage resultMessage = new ResultMessage();
        resultMessage.setCode(code);
        resultMessage.setMsg(msg);
        JSONArray jsonArray = new JSONArray();
        jsonArray.add(resultMessage);
        return jsonArray.toString();
    }
}
